package ArrayTest.Homework.ArmyTest;

public class Warplane extends Weapon implements Attack{
    public Warplane(){

    }
    public Warplane(String name, String type){
        this.name = name;
        this.type = type;
    }
    public void attack(){
        System.out.println(this.name+"发射5枚巡航导弹");
    }

    @Override
    public String toString() {
        return "Warplane{" +
                "name='" + name + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
